/*
 * @Description:
 * @Author: wlj
 * @Date: 2022-12-26 16:01:31
 * @LastEditors: wlj
 * @LastEditTime: 2023-01-03 15:33:49
 * @FilePath: \my-vite-app\src\router\index.ts
 */
import { createRouter, createWebHashHistory } from "vue-router";
import { routes, commonRoutes } from "./routes";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...routes, ...commonRoutes],
});

router.beforeEach(async (to, from, next) => {
  next();
});

export default router;
